﻿using AutoMapper;
using B.S.BasicData.Api.Read.DTO;
using B.S.BasicData.Domain;

namespace B.S.BasicData.Api.Read
{
    public class MyMapper:Profile
    {
        public MyMapper()
        {
            CreateMap<ShengDTO, ShengModel>().ReverseMap();
            CreateMap<ShiDTO, ShiModel>().ReverseMap();
            CreateMap<XianDTO, XianModel>().ReverseMap();   
            CreateMap<UserDTO, UserModel>().ReverseMap();
            CreateMap<RoleUserDTO, UserModel>().ReverseMap();
            CreateMap<MenuDTO, MenuModel>().ReverseMap();   
            CreateMap<TreeMenuDTO,MenuModel>().ReverseMap();    
            CreateMap<DepartmentDTO, DepartmentModel>().ReverseMap();
            
        }
    }
}
